package com.dragon.modules.yuegou.query.busd;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.busd.BasisConfigEntity;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

/**
 * 商圈基础设置 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2020-04-15 10:50:12
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class BasisConfigQuery extends BasisConfigEntity implements Query<BasisConfigEntity> {

    /** 查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 是否消息验证，1表示已验证,0表示不验证查询条件 */
	@JsonUnwrapped(prefix = "msgSecCheck")
	private Condition<Boolean> msgSecCheckCondition;

    /** IOS APP tab数量查询条件 */
	@JsonUnwrapped(prefix = "iosTabNum")
	private Condition<Integer> iosTabNumCondition;

    /** 安卓 APP tab数量查询条件 */
	@JsonUnwrapped(prefix = "androidTabNum")
	private Condition<Integer> androidTabNumCondition;

    /** 圈子和评论是否先审后发查询条件 */
	@JsonUnwrapped(prefix = "weblogCheck")
	private Condition<Boolean> weblogCheckCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public BasisConfigQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public BasisConfigQuery(BasisConfigEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public BasisConfigQuery(BasisConfigQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.msgSecCheckCondition != null) {
			this.msgSecCheckCondition = other.msgSecCheckCondition.copy();
		}
		if(other.iosTabNumCondition != null) {
			this.iosTabNumCondition = other.iosTabNumCondition.copy();
		}
		if(other.androidTabNumCondition != null) {
			this.androidTabNumCondition = other.androidTabNumCondition.copy();
		}
		if(other.weblogCheckCondition != null) {
			this.weblogCheckCondition = other.weblogCheckCondition.copy();
		}
	}

	@Override
	public QueryWrapper<BasisConfigEntity> toQueryWrapper() {
		QueryWrapper<BasisConfigEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (msgSecCheckCondition != null) {
			msgSecCheckCondition.toWrapper(wrapper, COL_MSG_SEC_CHECK);
		}
		if (iosTabNumCondition != null) {
			iosTabNumCondition.toWrapper(wrapper, COL_IOS_TAB_NUM);
		}
		if (androidTabNumCondition != null) {
			androidTabNumCondition.toWrapper(wrapper, COL_ANDROID_TAB_NUM);
		}
		if (weblogCheckCondition != null) {
			weblogCheckCondition.toWrapper(wrapper, COL_WEBLOG_CHECK);
		}
		return wrapper;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param idCondition 查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回是否消息验证，1表示已验证,0表示不验证查询条件
	 * 
	 * @return msgSecCheckCondition 是否消息验证，1表示已验证,0表示不验证查询条件
	 */
	public Condition<Boolean> msgSecCheck() {
		this.msgSecCheckCondition = new Condition<>();
		return this.msgSecCheckCondition;
	}
	
	/**
	 * 获取是否消息验证，1表示已验证,0表示不验证查询条件
	 * 
	 * @return msgSecCheckCondition 是否消息验证，1表示已验证,0表示不验证查询条件
	 */
	public Condition<Boolean> getMsgSecCheckCondition() {
		return msgSecCheckCondition;
	}

	/**
	 * 设置是否消息验证，1表示已验证,0表示不验证查询条件
	 * 
	 * @param msgSecCheckCondition 是否消息验证，1表示已验证,0表示不验证查询条件
	 */
	public void setMsgSecCheckCondition(Condition<Boolean> msgSecCheckCondition) {
		this.msgSecCheckCondition = msgSecCheckCondition;
	}

	/**
	 * 构造并返回IOS APP tab数量查询条件
	 * 
	 * @return iosTabNumCondition IOS APP tab数量查询条件
	 */
	public Condition<Integer> iosTabNum() {
		this.iosTabNumCondition = new Condition<>();
		return this.iosTabNumCondition;
	}
	
	/**
	 * 获取IOS APP tab数量查询条件
	 * 
	 * @return iosTabNumCondition IOS APP tab数量查询条件
	 */
	public Condition<Integer> getIosTabNumCondition() {
		return iosTabNumCondition;
	}

	/**
	 * 设置IOS APP tab数量查询条件
	 * 
	 * @param iosTabNumCondition IOS APP tab数量查询条件
	 */
	public void setIosTabNumCondition(Condition<Integer> iosTabNumCondition) {
		this.iosTabNumCondition = iosTabNumCondition;
	}

	/**
	 * 构造并返回安卓 APP tab数量查询条件
	 * 
	 * @return androidTabNumCondition 安卓 APP tab数量查询条件
	 */
	public Condition<Integer> androidTabNum() {
		this.androidTabNumCondition = new Condition<>();
		return this.androidTabNumCondition;
	}
	
	/**
	 * 获取安卓 APP tab数量查询条件
	 * 
	 * @return androidTabNumCondition 安卓 APP tab数量查询条件
	 */
	public Condition<Integer> getAndroidTabNumCondition() {
		return androidTabNumCondition;
	}

	/**
	 * 设置安卓 APP tab数量查询条件
	 * 
	 * @param androidTabNumCondition 安卓 APP tab数量查询条件
	 */
	public void setAndroidTabNumCondition(Condition<Integer> androidTabNumCondition) {
		this.androidTabNumCondition = androidTabNumCondition;
	}

	/**
	 * 构造并返回圈子和评论是否先审后发查询条件
	 * 
	 * @return weblogCheckCondition 圈子和评论是否先审后发查询条件
	 */
	public Condition<Boolean> weblogCheck() {
		this.weblogCheckCondition = new Condition<>();
		return this.weblogCheckCondition;
	}
	
	/**
	 * 获取圈子和评论是否先审后发查询条件
	 * 
	 * @return weblogCheckCondition 圈子和评论是否先审后发查询条件
	 */
	public Condition<Boolean> getWeblogCheckCondition() {
		return weblogCheckCondition;
	}

	/**
	 * 设置圈子和评论是否先审后发查询条件
	 * 
	 * @param weblogCheckCondition 圈子和评论是否先审后发查询条件
	 */
	public void setWeblogCheckCondition(Condition<Boolean> weblogCheckCondition) {
		this.weblogCheckCondition = weblogCheckCondition;
	}

}
